package com.hmall.search.service;


import com.hmall.common.dto.Item;
import com.hmall.common.dto.ItemDoc;
import com.hmall.common.dto.PageDTO;
import com.hmall.search.pojo.RequestParams;

import java.io.IOException;
import java.util.List;
import java.util.Map;

/**
 * @Author Azer
 * @LOVE,,,
 * @Date 2021/11/7 19:40
 */
public interface IsearchService {
    List<String> suggestion(String key);

    Map<String, List<String>> filters(RequestParams params);

    PageDTO<ItemDoc> search(RequestParams params);


    void ListenItemInsert(Long id) throws IOException;

    void ListenItemDelete(Long id) throws IOException;
}
